package com.gxa.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Build {
    private Integer bid;
    private String bname;
    private Integer unit; // 单元
    private Integer unitNum; // 总户数

    @JSONField(serialzeFeatures = SerializerFeature.DisableCircularReferenceDetect)
    private Community community;


    public Build(Integer bid, String bname, Integer unit) {
        this.bid = bid;
        this.bname = bname;
        this.unit = unit;
    }

}
